
PREFIX=aarch64-linux-gnu-
# PREFIX=aarch64-none-elf-

run: build
	touch *.tarmac && rm *.tarmac
	timeout 1 fvp_aem_run -C cluster0.PA_SIZE=0x30 test.elf

build: test.o
	$(PREFIX)ld -Tlink.lds -o test.elf $^


%.o: %.s
	$(PREFIX)gcc -c -o $@ $^

%.o: %.c
	$(PREFIX)gcc -c -o $@ $^

